package com.skyline.wo.dao;

import java.util.List;

import com.skyline.base.exception.NoResourceException;
import com.skyline.common.bean.Page;
import com.skyline.wo.model.Video;

public interface VideoDao {
	public long insertVideo(Long ownerId, String ownerPortrait, String ownerNickname, String title, String thumbnail, String summary,
			String time, String source, String pageUrl, String flashUrl, String htmlCode);
	
	//public void updateVideoDigest(Long id ,String digest);

	public Video queryVideoById(Long id) throws NoResourceException;
	
	public void updateVideoVisitNum(Long id);

	public  List<Video> queryVideoByOwnerId(Long ownerId,Page page);
}
